<?php
$cities = array (
  'up' => 'Lucknow',
  'bh' => 'Patna',
  'mh' => 'Mumbai',
  'ncr' => 'Noida'
);

foreach ($cities as $state=>$city) {

  echo "$city is in $state \n";

}

